<?php



namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

/**
 * 动态点赞
 */
class OcpcBaiduLog extends Model
{
    protected $table = 'ocpc_baidu_log';

    protected $fillable = [
        'url', 'pay_amount', 'sign','res','type','user_id'
    ];

    const TYPE = [
        1=>'激活',
        2=>'注册',
        3=>'充值'
    ];
    const IS_REG = [
        1=>'是',
        0=>'否'
    ];

    const PKG = [
        '470' => '同城交友',
    ];

    public function userProfile()
    {
        return $this->belongsTo(UserProfile::class, 'user_id', 'user_id');
    }


}
